package com.ycy;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {

  @org.junit.Test
  public void test(){

    AnnotationConfigApplicationContext applicationContext =
            new AnnotationConfigApplicationContext(CompentScanConfig.class);
    UploadService bean = applicationContext.getBean(UploadService.class);
    bean.testUploadImageAndCrtThumbImage();

  }

}
